home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / dalla rivista / amiga.free / diropus4.12b_gpl / config / lsprintf.asm < prev    next >
Assembly Source File  |  2000-01-27  |  2KB  |  58 lines

  1. ; Directory Opus 4
  2. ; Original GPL release version 4.12
  3. ; Copyright 1993-2000 Jonathan Potter
  4. ; This program is free software; you can redistribute it and/or
  5. ; modify it under the terms of the GNU General Public License
  6. ; as published by the Free Software Foundation; either version 2
  7. ; of the License, or (at your option) any later version.
  8. ; This program is distributed in the hope that it will be useful,
  9. ; but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. ; GNU General Public License for more details.
  12. ; You should have received a copy of the GNU General Public License
  13. ; along with this program; if not, write to the Free Software
  14. ; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  15. ; All users of Directory Opus 4 (including versions distributed
  16. ; under the GPL) are entitled to upgrade to the latest version of
  17. ; Directory Opus version 5 at a reduced price. Please see
  18. ; http://www.gpsoft.com.au for more information.
  19. ; The release of Directory Opus 4 under the GPL in NO WAY affects
  20. ; the existing commercial status of Directory Opus 5.
  21.  
  22. _LVORawDoFmt equ -$20a
  23.  
  24.     XDEF _lsprintf
  25.     XDEF _SwapMem
  26.  
  27.     section text,code
  28.  
  29. _lsprintf:
  30.     movem.l a2/a3/a6,-(sp)
  31.     move.l 4*4(sp),a3
  32.     move.l 5*4(sp),a0
  33.     lea.l 6*4(sp),a1
  34.     lea.l stuffChar(pc),a2
  35.     move.l 4,a6
  36.     jsr _LVORawDoFmt(a6)
  37.     movem.l (sp)+,a2/a3/a6
  38.     rts
  39.  
  40. stuffChar:
  41.     move.b d0,(a3)+
  42.     rts
  43.  
  44. _SwapMem:
  45.     move.b (a0),d1
  46.     move.b (a1),(a0)+
  47.     move.b d1,(a1)+
  48.     subq.l #1,d0
  49.     bne.s _SwapMem
  50.     rts
  51.  
  52.     end
  53.